<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="memory.*,java.lang.management.ClassLoadingMXBean,java.util.*"%>
<html>
<head>
<script type="text/javascript" src="<%= getServletContext().getContextPath() %>/js/scripts.js"></script>
<script type="text/javascript" src="<%= getServletContext().getContextPath() %>/js/jquery-1.2.1.js"></script>
<link rel="stylesheet" type="text/css" href="<%= getServletContext().getContextPath() %>/css/style.css" >
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script>
  $(document).ready(function(){
        $("div").slideDown("slow");
    });
 </script>
</head>
<body>
<% JvmInformation jvmobj = (JvmInformation)request.getAttribute("jvmobj"); %>
<% String val=request.getParameter("val");
  		
  		%>
<div class="title"> Virtual machine </div>
<div class="info">
<%ClassLoadingMXBean cl=jvmobj.getClmxbean(); %>
<form name="verbose" method="GET" action="ManageVerbose?jvmobj=<%=jvmobj%>&setVerbose=<%=val %>">
<table>
	<tr>
		<th>Class Loading</th>
	</tr>
   <tr>
  	<td>
  		Loaded classes: <%= cl.getLoadedClassCount() %>
  	</td>
  </tr>
  <tr>
  	<td>
  		Total Loaded Classes: <%= cl.getTotalLoadedClassCount() %>
  	</td>
  </tr>   
  <tr>
  	<td>
  		Unloaded Classes: <%= cl.getUnloadedClassCount() %>
  	</td>
  </tr> 
  
  	<tr>
  		<td>
  			<input type="radio" name="setVerbose" value="true"/>True
  		</td>
  	</tr>
  	<tr>
  		<td>
  			<input type="radio" name="setVerbose" value="false"/>False
  		</td>
  	</tr>
  	<tr>
  		<td>
  			<input type="submit" value="OK"/>
  		</td>
  	</tr>
  
  <%if (val!=null){ %>
  <tr>
  	<td>
  		We have this value <%= val %>
  	</td>
  </tr>
  <%} %>
</table>
</form>
</div>
</body>
</html>